package com.info.zhiduoduo.repository.entity.system;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 系统配置表
 *
 * </p>
 *
 * @author bob
 * @since 2019-11-07
 */
@Data
@Accessors(chain = true)
@TableName("zdd_system_cfg")
public class SystemCfg extends Model<SystemCfg> {

	private static final long serialVersionUID = 1L;

	/**
	 * 配置key
	 */
	@TableId(value = "cfg_key", type = IdType.INPUT)
	private String cfgKey;
	/**
	 * 配置值
	 */
	@TableField("cfg_value")
	private String cfgValue;
	/**
	 * 父配置
	 */
	@TableField("cfg_parent")
	private String cfgParent;
	private Date createtime;
	private Date updatetime;

	@Override
	protected Serializable pkVal() {
		return this.cfgKey;
	}

}
